#!/usr/bin/env bash

. corelib.sh

if [ $# -ne 1 ]; then
    printf "Usage: ${0} command\n" >&2
    exit 1
fi

check_for_cmd_in_path "${1}"

case $? in
    0 )
        printf "${1} found in PATH\n"
        ;;
    1 )
        printf "${1} not found or not executable\n"
        ;;
    2 )
        printf "${1} not found in PATH\n"
        ;;
esac

exit 0
